import React from 'react'
import {useLocation} from "react-router-dom"
function Detail() {
  const location = useLocation()
  console.log(location.state.name);
  return (
    <div>detail
        {
           location.state.name 
        }
    </div>
  )
}

export default Detail